Gets the identifier of the current activity, as provided in the manifest. This is unique per session.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public string CurrentActivityKey { get; } |
| Exception type | Condition |
| InvalidOperationException | Thrown if there is no current activity in the session. |
When possible, use CurrentActivityId to refer to activities, as it will afford better performance.